home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
change
/
aboutbox.frm
next >
Wrap
Text File
|
1995-09-06
|
4KB
|
126 lines
VERSION 2.00
Begin Form AboutBox
BorderStyle = 3 'Fixed Double
Caption = "About The Desktop Changer"
ClientHeight = 2910
ClientLeft = 2415
ClientTop = 2145
ClientWidth = 6180
Height = 3315
Icon = ABOUTBOX.FRX:0000
Left = 2355
LinkMode = 1 'Source
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2910
ScaleWidth = 6180
Top = 1800
Width = 6300
Begin PictureBox Picture2
AutoSize = -1 'True
BorderStyle = 0 'None
Height = 480
Left = 390
Picture = ABOUTBOX.FRX:0302
ScaleHeight = 480
ScaleWidth = 480
TabIndex = 2
Top = 240
Width = 480
End
Begin Label Label2
Height = 885
Left = 1365
TabIndex = 0
Top = 1995
Width = 4335
End
Begin Label Label3
BackColor = &H00000000&
Caption = "Label3"
Height = 30
Left = 1365
TabIndex = 1
Top = 1890
Width = 4365
End
Begin Label Label1
Height = 1695
Left = 1365
TabIndex = 3
Top = 165
Width = 3735
End
End
DefInt A-Z
Declare Function GetFreeSpace& Lib "Kernel" (ByVal wFlags)
Declare Function GetWinFlags& Lib "Kernel" ()
Const WF_STANDARD = &H10
Const WF_ENHANCED = &H20
Declare Function GetSystemMenu Lib "User" (ByVal hWnd, ByVal bRevert)
Declare Function DeleteMenu Lib "User" (ByVal hMenu, ByVal nPosition, ByVal wFlags)
Sub Command1_Click ()
Unload AboutBox
End Sub
Sub Form_Load ()
Const MF_BYPOSITION = &H400
CRLF$ = Chr$(13) + Chr$(10)
AboutBox.Top = ((screen.Height * .79) / 2) - (AboutBox.Height / 2)
AboutBox.Left = (screen.Width / 2) - (AboutBox.Width / 2)
hSysMenu = GetSystemMenu(hWnd, 0)
x% = DeleteMenu(hSysMenu, 9, MF_BYPOSITION)
x% = DeleteMenu(hSysMenu, 8, MF_BYPOSITION)
x% = DeleteMenu(hSysMenu, 7, MF_BYPOSITION)
x% = DeleteMenu(hSysMenu, 5, MF_BYPOSITION)
label1.Caption = CRLF$ + "Changer In Visual Basic" + CRLF$ + CRLF$
label1.Caption = label1.Caption + "By B.Biney" + CRLF$
label1.Caption = label1.Caption + CRLF$ + "This product is licensed to:" + CRLF$
label1.Caption = label1.Caption + CRLF$ + "(Unlicensed)"
a% = Mode()
Select Case a%
Case 32
g$ = "386 Enhanced Mode"
Case 16
g$ = "Standard Mode"
End Select
If MathChip() Then
z$ = "Present"
Else
z$ = "Absent"
End If
Label2.Caption = g$ + CRLF$
Label2.Caption = Label2.Caption + "Memory:" + Space$(27) + Format$(FreeMem&() \ 1024) + "KB Free" + CRLF$
Label2.Caption = Label2.Caption + "Math Co-processor:" + Space$(11) + z$ + CRLF$
End Sub
Function FreeMem& ()
FreeMem& = GetFreeSpace(0)
End Function
Function MathChip ()
Flags& = GetWinFlags()
If Flags& And WF_8087 Then
MathChip = True
Else
MathChip = False
End If
End Function
Function Mode ()
Flags& = GetWinFlags()
If Flags& And WF_ENHANCED Then
Mode = WF_ENHANCED
Else
Mode = WF_STANDARD
End If
End Function
Sub Picture2_DblClick ()
MsgBox "By The Boss !", 64, "Ha Ha Ha!"
End Sub